<?xml version="1.0" encoding="UTF-8" ?>
<html>
  <head>
    <meta name="layout" content="hctrauma" />
    <title>
      <g:message code="trauma.title.registroClinico" />
    </title>
  </head>
  <body>
    <h1><g:message code="trauma.title.registroClinico" /></h1>
    
    <g:each in="${sections.keySet()}" var="section">
      <g:if test="${sections[section].size()==1}">
        <g:link controller="guiGen" action="generarTemplate" params="[templateId: sections[section][0]]">
          <g:message code="${'section.'+section}" />
        </g:link><br/><br/>
      </g:if>
      <g:else>
        <g:message code="${'section.'+section}" />:
        <ul>
          <g:each in="${sections[section]}" var="subSection">
             <li>
               <g:link controller="guiGen" action="generarTemplate" params="[templateId: subSection]">
                 <g:message code="${'section.'+subSection}" />
               </g:link>
             </li>
          </g:each>
        </ul>
      </g:else>
    </g:each>
  
  </body>
</html>